<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head></head>
<body>
<div id="heading"></div>
<ul id="navPrimary"></ul>
<div id="hp_content"></div>
<div id="hp_features"></div>
<div id="footer"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head></head>
<body>
<header></header>
<nav></nav>
<section></section>
<aside></aside>
<footer></footer>
</body>
</html>
@media (min-width: 700px) { ... }
@media (max-width: 800px) and (orientation: landscape) { ... }
@media print, orientation { ... }
mediaqueri.es
Bestemmer layout
Fleksibelt!
display: flex
flex-direction: row | row-reverse | column | column-reverse
justify-content: flex-start | flex-end | center
| space-between | space-around
align-items: flex-start | flex-end | center | baseline | stretch
box-shadow: 1px 2px 5px 2px rgba(50, 50, 50, 0.75)
box-shadow generator
text-shadow: 1px 2px 5px rgba(50, 50, 50, 0.75)
box-shadow generator
if (window.XMLHttpRequest)
{ // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else
{ // code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","books.xml",false);
xmlhttp.send();
xmlDoc = xmlhttp.responseXML;
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
xmlDox = xmlhttp.responseXML;
}
}
var json = '{"result":true,"count":1}',
obj = JSON.parse(json);
var worker = new Worker("worker_script.js");
worker.postMessage("Hello World!");
worker.onmessage = function(event) {
alert("Received message " + event.data);
doSomething();
}
worker.terminate();
addEventListener(type, listener, useCapture)